.face-capture {
  display: flex;
  flex-direction: column;
  align-items: center;
  
  .capture-button {
    padding: 12px 24px;
    height: auto;
    font-size: 16px;
    
    .anticon {
      font-size: 20px;
      margin-right: 8px;
    }
  }
  
  .camera-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: #fff2f0;
    border-radius: 8px;
    border: 1px solid #ffccc7;
    width: 100%;
    max-width: 400px;
    text-align: center;
  }
  
  .captured-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    
    .preview-image {
      max-width: 100%;
      max-height: 300px;
      border-radius: 8px;
      border: 1px solid #eaeaea;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
  }
}

.camera-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  
  .video-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    
    .camera-video {
      width: 100%;
      max-width: 640px;
      height: auto;
      max-height: 480px;
      object-fit: cover;
      display: block;
      border-radius: 8px;
    }
    
    .countdown-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      
      .countdown-number {
        font-size: 120px;
        font-weight: bold;
        color: #fff;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
        animation: pulse 1s infinite;
      }
    }
  }
  
  .status-indicators {
    margin-top: 16px;
    
    .face-detection-status,
    .light-status {
      display: flex;
      flex-direction: column;
      padding: 12px;
      border-radius: 8px;
      gap: 8px;
      
      .anticon {
        font-size: 18px;
        margin-right: 8px;
      }
      
      &.detected {
        background-color: #f6ffed;
        border: 1px solid #b7eb8f;
        
        .anticon {
          color: #52c41a;
        }
      }
      
      &.not-detected {
        background-color: #f5f5f5;
        border: 1px solid #d9d9d9;
        
        .anticon {
          color: #1890ff;
        }
      }
      
      &.warning {
        background-color: #fff7e6;
        border: 1px solid #ffd591;
        
        .anticon {
          color: #fa8c16;
        }
      }
      
      &.good {
        background-color: #f6ffed;
        border: 1px solid #b7eb8f;
        
        .anticon {
          color: #52c41a;
        }
      }
    }
  }
  
  .camera-tips {
    margin-top: 8px;
    padding: 12px;
    background-color: #f0f5ff;
    border-radius: 8px;
    border: 1px solid #d6e4ff;
    display: flex;
    align-items: flex-start;
    
    .anticon {
      font-size: 16px;
      margin-right: 8px;
      margin-top: 2px;
      color: #1890ff;
    }
  }
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.preview-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  
  .preview-image-modal {
    max-width: 100%;
    max-height: 480px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
  }
  
  .preview-message {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 8px 16px;
    border-radius: 4px;
    margin-top: 8px;
  }
}

@keyframes camera-flash {
  0% { opacity: 0; }
  25% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

.camera-flash {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  opacity: 0;
  pointer-events: none;
  animation: camera-flash 0.5s ease-out;
  z-index: 10;
}